package com.tianpengtech.front.web.job;

import com.jfinal.aop.Duang;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.tianpengtech.common.model.task.Task;
import com.tianpengtech.front.web.task.TaskService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.List;

/**
 * Created by ggd on 2017/6/21 0021.
 */
public class TaskEndJob implements Job {

    private static TaskService taskService = Duang.duang(TaskService.class,Tx.class);
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //taskService.taskJob();
    	//taskService.setTaskToStart();
    	taskService.setTaskToEnd();
//    	System.out.println("修正Task的状态");
    }
}
